package 面向对象;

import 非public类.A2Interface2;
import 非public类.test2;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: WangYongGan
 * @Date: 2021/11/29 1:26
 * @Description:
 */
public class 接口 {
    private class s {


    }

    public static class b extends test2 implements A1Interface, A2Interface2 {
        public b(int t) {
            b b=new b(2);
        }
        public void test() {
            A1Interface.super.a();
            A2Interface2.super.testx();
            super.t2();
        }

        @Override
        public void a() {
            new b(2);
            A1Interface.super.a();
            A1Interface.super.a();
        }


        public void testx() {
            A2Interface2.super.testx();
        }
    }

    public static void main(String[] args) {
        b b = new b(2);
        b.testx();
    }

}

class test {
    public test() {

    }

    public void t1() {

    }

    protected void t2() {

    }

    void t3() {
    }

    private void t4() {

    }

    public test(int t) {

    }
}

interface A1Interface {
    int x = 100;
    int i = 200;

    default void a() {
        System.out.println("a1");
    }
}

interface A2Interface {
    default void a() {
        System.out.println("a2");
    }

    default void testx() {
        System.out.println("tx");
    }

    static void t() {
        System.out.println("aaa");
    }
}